home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8097 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  861 b 

  1. Path: I980.ssi.stratus.com!not-for-mail
  2. From: davidm@ssi.stratus.com ()
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How are multidimensional array stored in memory?
  5. Date: 1 Mar 1996 15:17:27 GMT
  6. Organization: Stratus Computer Inc, Marlboro MA
  7. Message-ID: <4h74e7$quj@transfer.stratus.com>
  8. References: <4h6tk6$1d2@mn5.swip.net>
  9. Reply-To: David_McReynolds@vos.stratus.com
  10. NNTP-Posting-Host: i980.ssi.stratus.com
  11. X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]
  12.  
  13. Chris Rossall (chris.rossall@mailbox.swipnet.se) wrote:
  14. : Hello I was just wondering how multidimensional arrays would be stored
  15. : in memory.For example info[20][3].
  16. : would infor[0][1] follow info[0][0] or would info[1][0] follow it?
  17. : Perhaps this is compiler dependant?
  18. : -Chris
  19.  
  20. The FAQ is located at rtfm.mit.edu. Please read it.  But, given the
  21. fact that C is row major, the answer is rather obvious.
  22.